﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PaginaMaestra.Master" AutoEventWireup="true" CodeBehind="AltaCine.aspx.cs" Inherits="ProyectoCine.AreaPrivada.AltaCine" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <style type="text/css">
        .style7
        {
            width: 113px;
        }
        .style19
        {
            width: 325px;
        }
        .style21
        {
            width: 93px;
            height: 16px;
        }
        .style22
        {
            width: 325px;
            height: 16px;
        }
        .style25
        {
            height: 30px;
            width: 132px;
        }
        .style26
        {
            width: 76px;
        }
        .style27
        {
            width: 725px;
        }
        .style32
        {
            width: 725px;
            height: 27px;
        }
        .style33
        {
            width: 725px;
            height: 30px;
        }
        .style37
        {
            width: 93px;
        }
        .style38
        {
            width: 132px;
        }
        </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" runat="server">

    
    <asp:Panel ID="Panel1" runat="server" GroupingText="Nuevo Cine" Height="608px" 
        Font-Bold="True" ForeColor="Red" Width="758px">
        <table class="style1" style="width: 76%">
        <tr>
            <td class="style37">
                <asp:Label ID="Label4" runat="server" Font-Bold="True" ForeColor="Red" 
                    Text="Numero Cine"></asp:Label>
            </td>
            <td class="style19">
                <asp:Label ID="lblIdCine" runat="server"></asp:Label>
            </td>            
        </tr>
        <tr>
            <td class="style21">
                <asp:Label ID="Label5" runat="server" Font-Bold="True" ForeColor="Red" 
                    Text="Nombre Cine"></asp:Label>
            </td>
            <td class="style22" colspan= "1">
                <asp:TextBox ID="txtNombreCine" runat="server"></asp:TextBox>                
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtNombreCine" ErrorMessage="Ingresar Cine" 
                    ToolTip="Ingresar Cine" ValidationGroup="validadorGrupo">*</asp:RequiredFieldValidator>
            </td>           
        </tr>
        <tr>
            <td class="style37">
                <asp:Label ID="Label6" runat="server" Text="Dirección" Font-Bold="True" 
                    ForeColor="Red"></asp:Label>
            </td>
            <td class="style19">
                <asp:TextBox ID="txtDireccionCine" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtDireccionCine" ErrorMessage="Ingresar Direccion" 
                    ToolTip="Ingresar Direccion" ValidationGroup="validadorGrupo">*</asp:RequiredFieldValidator>
            </td>     
                          
        </tr>
        <tr>
            <td class="style37">
                <asp:Label ID="Label7" runat="server" Text="N°" Font-Bold="True" 
                    ForeColor="Red"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtNumDirCine" runat="server" Width="128px"></asp:TextBox>
                <%--<asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToValidate="txtNumDirCine" ErrorMessage="Ingresar Caracteres Numéricos" 
                    Font-Bold="True" ForeColor="Red" Type="Double" Width="25px" 
                    ToolTip="Ingresar Caracteres Numéricos" ValidationGroup="validadorGrupo">*</asp:CompareValidator>--%>

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtNumDirCine" ErrorMessage="Ingresar Numero" 
                    ToolTip="Ingresar Numero" ValidationGroup="validadorGrupo">*</asp:RequiredFieldValidator>
            </td>           
                            
        </tr>
        <tr>
            <td class="style37">
                <asp:Label ID="Label8" runat="server" Text="Barrio" Font-Bold="True" 
                    ForeColor="Red"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtBarrioCine" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtBarrioCine" ErrorMessage="Ingresar Barrio" 
                    Font-Bold="True" ForeColor="Red" ToolTip="Ingresar Barrio" 
                    ValidationGroup="validadorGrupo">*</asp:RequiredFieldValidator>
            </td>            
        </tr>
        <tr>
            <td class="style37">
                <asp:Label ID="Label9" runat="server" Text="Telefono" Font-Bold="True" 
                    ForeColor="Red"></asp:Label>
            </td>
            <td class="style19">
                <asp:TextBox ID="txtTelCine" runat="server"></asp:TextBox>
                <%--<asp:CompareValidator ID="CompareValidator3" runat="server" 
                    ControlToValidate="txtTelCine" ErrorMessage="Ingresar Caracteres Numéricos" 
                    Font-Bold="True" ForeColor="Red" Type="Double" 
                    ToolTip="Ingresar Caracteres Numericos" ValidationGroup="validadorGrupo">*</asp:CompareValidator>--%>

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtTelCine" ErrorMessage="Ingresar Numero" 
                    ToolTip="Ingresar Numero" ValidationGroup="validadorGrupo">*</asp:RequiredFieldValidator>
            </td>            
        </tr> 

        </table>

              
        <asp:Panel ID="Panel2" runat="server" GroupingText="Insertar Sala" 
        Height="373px" Font-Bold="True" ForeColor="Red" Width="742px" 
            style="margin-bottom: 0px">
       <table class="style1" style="width: 100%; height: 157px;">
       <tr>
       <td class="style32">
              <%--<asp:CheckBoxList ID="CheckBoxList1" runat="server" Font-Bold="True" 
                  ForeColor="White" RepeatDirection="Horizontal" AutoPostBack="True" 
                  onselectedindexchanged="CheckBoxList1_SelectedIndexChanged" Width="26px" 
                  ViewStateMode="Enabled" style="height: 26px">
                <asp:ListItem></asp:ListItem>
       </asp:CheckBoxList>--%>
              <asp:DropDownList ID="ddlSalas" runat="server" Height="20px" Width="152px" 
                  AutoPostBack="True" onselectedindexchanged="ddlSalas_SelectedIndexChanged">
              </asp:DropDownList>
              
               
       </td>
       <td class="style38">
           <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
               ControlToValidate="ddlSalas" ErrorMessage="Debe seleccionar una sala" 
               Font-Size="Small" ForeColor="Red" InitialValue="Seleccionar Sala" 
               ValidationGroup="validadorSala"></asp:RequiredFieldValidator>

    
          
          
       </td>
    
           <td class="style38">
               <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red" 
                   Text="Capacidad:"></asp:Label>
           </td>
           <td class="style38">
               <asp:TextBox ID="txtCapacidad" runat="server" Width="68px"></asp:TextBox>
               <%-- <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToValidate="txtCapacidad" ErrorMessage="Ingresar Caracteres Numéricos" 
                    Font-Bold="True" ForeColor="Red" Type="Double" Width="25px" 
                    ToolTip="Ingresar caracteres numericos" ValidationGroup="validadorSala"></asp:CompareValidator>--%>
           </td>
           <td class="style38">
               <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                   ControlToValidate="txtCapacidad" ErrorMessage="Ingrese la capacidad de la sala" 
                   Font-Bold="True" Font-Size="Small" ForeColor="Red" ToolTip="Ingresar Numero" 
                   ValidationGroup="validadorSala"></asp:RequiredFieldValidator>
           </td>
    
           <td class="style38">
             <asp:Button ID="btnIngresarSala" runat="server" 
               ValidationGroup="validadorSala" onclick="btnIngresarSala_Click" 
                   Text="Agregar Sala" /></td>
    
       </tr>           
       <tr>
          <td class="style33">
              &nbsp;
              <asp:Label ID="lblSalasSel" runat="server" Font-Bold="True" ForeColor="Red" 
                  Text="Salas Seleccionadas" Width="183px" Visible="False"></asp:Label>
          </td>
          <td class="style25">              
              <%--<asp:Label ID="Label11" runat="server" Font-Bold="True" ForeColor="Red" 
                  Text="Salas Seleccionadas" Width="200px"></asp:Label>--%>
              &nbsp;</td>
          
           <td class="style25">
               &nbsp;</td>
           <td class="style25">
               <%--<asp:Label ID="Label11" runat="server" Font-Bold="True" ForeColor="Red" 
                  Text="Salas Seleccionadas" Width="200px"></asp:Label>--%>
           </td>
           <td class="style25">
               &nbsp;</td>
          
           <td class="style25">
               &nbsp;</td>
          
       </tr>
       <tr>
       <%--<td class="style31">
           <asp:GridView ID="gvSalas" runat="server" AutoGenerateColumns="False" 
               onselectedindexchanged="gvSalas_SelectedIndexChanged">
               <Columns>
                   <asp:BoundField DataField="nombre" HeaderText="Nombre Sala" 
                       SortExpression="nombre" />
                   <asp:CommandField ShowSelectButton="True" />
               </Columns>
           </asp:GridView>
       </td>--%>
       <td class="style26" colspan="4">

           <asp:GridView ID="gvPrueba" runat="server" 
               style="margin-top: 0px" Width="400px" 
               PageSize="5" AutoGenerateColumns="False" AllowPaging="True" 
               onpageindexchanging="gvPrueba_PageIndexChanging" BackColor="#DEBA84" 
               BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
               CellSpacing="2" Height="16px">
               <Columns>
                   <asp:BoundField DataField="Numero_Sala" HeaderText="Numero" />
                   <asp:BoundField DataField="Nombre_Sala" HeaderText="Nombre" />
                   <asp:BoundField DataField="Capacidad" HeaderText="Capacidad" />
               </Columns>
               <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
               <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
               <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
               <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
               <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
               <SortedAscendingCellStyle BackColor="#FFF1D4" />
               <SortedAscendingHeaderStyle BackColor="#B95C30" />
               <SortedDescendingCellStyle BackColor="#F1E5CE" />
               <SortedDescendingHeaderStyle BackColor="#93451F" />
           </asp:GridView>          

           </td>   
           <td class="style26">
               &nbsp;</td>
           <td class="style26">
               &nbsp;</td>
           <td>
               &nbsp;</td>      
                  
       </tr>   
       <tr>
       <td class="style27">
           
           <asp:Label ID="lblError" runat="server"></asp:Label>
           
       </td>
       <td class="style38">

           &nbsp;</td>
           <td class="style38">
               &nbsp;</td>
           <td class="style38">
           </td>
           <td class="style38">
               &nbsp;</td>
           <td class="style38">
               &nbsp;</td>
       </tr>
           
        </table>
          <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
        ValidationGroup="validadorGrupo" Font-Bold="True" ForeColor="Red" 
            Height="40px" />
    </asp:Panel>         
    </asp:Panel>      

    <asp:Button ID="btnAceptar" runat="server" Text="Aceptar" onclick="btnAceptar_Click" ValidationGroup="validadorGrupo" />
    &nbsp;&nbsp;<asp:Button ID="btnBorrar" runat="server" onclick="btnBorrar_Click" 
        Text="Borrar" />
    &nbsp;&nbsp;<asp:Button ID="btnCancelar" runat="server" 
        onclick="btnCancelar_Click" Text="Cancelar" />
    &nbsp;&nbsp;

</asp:Content>